﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Data.EntityClient;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Runtime.Serialization;

namespace AudiPyme.DAL
{
    public partial class Sectores : EntityObject
    {
        public Sectores(int IdSector, int IdCNAE, String NombreSector) : base()
        {
            this.IdSector = IdSector;
            this.IdCNAE = IdCNAE;
            this.NombreSector = NombreSector;
        }

        public Sectores() : base()
        {

        }

        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
                return false;
            Sectores SectorEquals = (Sectores)obj;
            return IdSector == SectorEquals.IdSector && IdCNAE == SectorEquals.IdCNAE 
                && NombreSector == SectorEquals.NombreSector;
        }
    }
}
